﻿using Common.Communal;
using MediatR;
using System.Collections.Generic;

namespace Scheduling.Api.Read.Application.Command.TeamCommand
{
    // 查询班组成员并联查班组信息
    public class TeamMemberCreateCommand : IRequest<ApiResult<List<TeamMemberWithTeam>>>
    {
        public int? TeamId { get; set; } // 可选的TeamId参数，用于筛选特定班组的成员
    }

    // 扩展视图模型：成员+班组+用户+角色信息
    public class TeamMemberWithTeam
    {
        public int MemberId { get; set; }
        public int TeamId { get; set; }
        public int EmployeeId { get; set; }
        public string TeamName { get; set; } = string.Empty;
        public string TeamTypeName { get; set; } = string.Empty;
        public string UserName { get; set; } = string.Empty;
        public string UserAccount { get; set; } = string.Empty;
        public string UserPhone { get; set; } = string.Empty;
        public string RoleName { get; set; } = string.Empty;
    }
}
